package com.demo.constant;

import io.swagger.annotations.ApiModel;

@ApiModel("常量池")
public class TokenConst {
    //token秘钥
    public static final String  APP_TOKEN_SECRET = "vte_bodyguard";
    //token过期时间  60分钟
    public static final int  APP_TOKEN_TIME_OUT = 1000*60*60*24;

    public final static String SESSION_NAME = "intelligent_users";

    /**
     * 登录页面的回调地址在session中存储的变量名
     */
    public static final String SESSION_LOGIN_REDIRECT_URL = "LOGIN_REDIRECT_URL";

    /**
     * Access Token在session中存储的变量名
     */
    public static final String SESSION_ACCESS_TOKEN = "ACCESS_TOKEN";

    /**
     * 用户信息在session中存储的变量名
     */
    public static final String SESSION_USER = "SESSION_USER";

    /**
     * Access Token在session中存储的变量名
     */
    public static final String COOKIE_ACCESS_TOKEN = "ACCESS_TOKEN";

    /**
     * Refresh Token在session中存储的变量名
     */
    public static final String COOKIE_REFRESH_TOKEN = "REFRESH_TOKEN";

}
